<select id="<?php echo $this->fieldId; ?>" name="<?=$this->fieldName;?>" class="input inp_select">
<?
while (list ($k, $v) = each($this->params['values']))
{
	if (is_array($v))
	{
		?><optgroup label="<?php echo Mozg_Lang::_($k); ?>"><?php
		foreach ($v as $kk => $vv)
		{
			?><option value="<?=htmlspecialchars($kk);?>" <?=(($kk == $this->data) ? ' selected' : '');?>><?=Mozg_Lang::_($vv);?></option><?php
		}
		?></optgroup><?php
	}
	else
	{
		?><option value="<?=htmlspecialchars($k);?>" <?=(($k == $this->data) ? ' selected' : '');?>><?=$v;?></option><?
	}
}
?>
</select>